SimplePay\Core\RestApi\Internal\Payment\Utils\PaymentRequestUtils B

Total Complexity 97
Dependencies 5
Dependents 12
Total lines 982
Lines of code 487
Logical lines of code 249
Comment lines 357
Methods 25
Properties 0

Methods 25

Method Rating Maintainability Complexity Lines of code
get_payment_metadata()
C
29
21 144
get_payment_method_types()
B
37 16 79
get_amount()
A
47 9 35
get_payment_method_options()
A
43 6 52
has_recurring_price()
A
55 8 19
is_recurring()
S
54 5 22
get_payment_intent_data()
S
58 5 15
get_trial_period_days_from_price_ids()
S
61 4 11
get_multiple_line_items_unit_amount()
S
55 3 20
get_return_url()
S
61 2 13
get_unit_amount()
S
66 2 8
get_cancel_url()
S
67 2 8
get_form()
S
65 2 9
get_form_values()
S
76 1 4
is_covering_fees()
S
76 1 4
is_optionally_recurring()
S
72 1 6
get_tax_calc_id()
S
76 1 4
get_coupon_code()
S
76 1 4
get_custom_unit_amount()
S
76 1 4
get_quantity()
S
76 1 4
get_payment_method_type()
S
76 1 4
get_currency()
S
79 1 3
get_price_ids()
S
80 1 3
get_price()
S
67 1 8
has_trial_period()
S
76 1 4